package cn.leaf.strategy;

import java.math.BigDecimal;

/**
*
 * description:
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-07-15 22:21:46
 *
*/
public class VipCustomerStrategy implements DiscountStrategy {
    @Override
    public BigDecimal getPrice(BigDecimal originalPrice) {
        System.out.println("恭喜，VIP客户享有8折优惠");
        return originalPrice.multiply(new BigDecimal("0.8"));
    }
}
